import http from '../utils/http';

export function getAbsence(params) {
    return http.get('/api/hr/absence', params);
}

export function addAbsence(params) {
    return http.post('/api/hr/absence', params);
}

export function updateAbsence(params) {
    return http.put(`/api/hr/absence/${params.id}`, params);
}

export function delAbsence(params) {
    return http.delete(`/api/hr/absence/${params.id}`, params);
}

export function getPersonnelDetail(params) {
    return http.get(`/api/hr/personnel/${params.id}`, params);
}

export function getAbsenceDownload(params, options) {
    return http.get('/api/hr/absence/download', params, options);
}


